package quasar_framework;

import java.io.Serializable;
import java.util.ArrayList;


public class Message implements Serializable
{
	private static final long serialVersionUID = 7219343082566404073L;
	public int ID;
	public MessageType type;
	public int ttl;
	public ArrayList<Integer> alreadyReceived;
	public int hops;
	public Object data;
	
	public Message(MessageType type, int ttl, Object data, int ID)
	{
		this.type = type;
		this.ttl = ttl;
		this.hops = 0;
		this.alreadyReceived = new ArrayList<Integer>();
		this.data = data;
		this.ID = ID;
	}

	public Message(MessageType type, int ttl, int ID)
	{
		this.type = type;
		this.ttl = ttl;
		this.hops = 0;
		this.alreadyReceived = new ArrayList<Integer>();
		this.ID = ID;
	}

}
